package com.titanrise.crm.environment.ioc;

import com.titanrise.crm.environment.menu.MenuAdapter;
import lombok.SneakyThrows;

import java.util.ArrayList;

/**
 * @Description:
 * @Author: pront
 * @Time:2024-11-02 14:23
 */
public class ProjectInitializr {
    static {
        SingletonConfig.initSingletonPool("com.titanrise.crm");
    }


    @SneakyThrows
    public static void start() {
        MenuAdapter.start(new ArrayList<>(SingletonConfig.singletonPool.values()), "/");
    }
}
